﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AMatysiak.Methods;

namespace AMatysiakTest.Methods
{
    [TestClass]
    public class ToCurrencyTest
    {
        [TestMethod]
        public void zeroToCurrency()
        {
            double value = 0;
            string text = value.ToCurrency();

            Assert.AreEqual("0,00 zł", text);
        }

        [TestMethod]
        public void oneFiftyToCurrency()
        {
            double value = 1.50;
            string text = value.ToCurrency();

            Assert.AreEqual("1,50 zł", text);
        }

        [TestMethod]
        public void thousandToCurrency()
        {
            double value = 1000;
            string text = value.ToCurrency();

            Assert.AreEqual("1 000,00 zł", text);
        }

        [TestMethod]
        public void onePoint446ToCurrency()
        {
            double value = 1.446;
            string text = value.ToCurrency();

            Assert.AreEqual("1,45 zł", text);
        }
    }
}
